import Vue from 'vue'
import Vuerouter from 'vue-router'



const Category = () => import('views/tabbar/category/Category')
const Home = () => import('views/tabbar/home/Home')
const Cats = () => import('views/tabbar/cats/Cats')
const Profile = () => import('views/tabbar/profile/Profile')
const Details = () => import('views/tabbar/details/Details')

Vue.use(Vuerouter)



const routes = [{
  path: '/',
  redirect: '/home'
}, {
  path: '/home',
  component: Home

}, {
  path: '/category',
  component: Category
}, {
  path: '/profile',
  component: Profile
}, {
  path: '/cats',
  component: Cats
}, {
  path:"/details/",
  component:Details
}]

const router = new Vuerouter({
  routes,
  mode: 'history'
})

export default router
